package com.ruoyi.cderp.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 地址库对象 base_data_address
 *
 * @author ruoyi
 * @date 2025-03-12
 */
public class BaseDataAddress extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @Excel(name = "ID")
    private String id;

    /** 实体ID */
    @Excel(name = "实体ID")
    private String entityId;

    /** 实体类型 */
    @Excel(name = "实体类型")
    private Long entityType;

    /** 地址类型 */
    @Excel(name = "地址类型")
    private Long addressType;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 手机号 */
    @Excel(name = "手机号")
    private String telephone;


    /** 市 */
    @Excel(name = "市")
    private String cityId;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 是否默认地址 */
    @Excel(name = "是否默认地址")
    private Integer isDefault;

    /** 创建人ID */
    private String createById;

    /** 修改人ID */
    private String updateById;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setEntityId(String entityId)
    {
        this.entityId = entityId;
    }

    public String getEntityId()
    {
        return entityId;
    }
    public void setEntityType(Long entityType)
    {
        this.entityType = entityType;
    }

    public Long getEntityType()
    {
        return entityType;
    }
    public void setAddressType(Long addressType)
    {
        this.addressType = addressType;
    }

    public Long getAddressType()
    {
        return addressType;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setTelephone(String telephone)
    {
        this.telephone = telephone;
    }

    public String getTelephone()
    {
        return telephone;
    }

    public void setCityId(String cityId)
    {
        this.cityId = cityId;
    }

    public String getCityId()
    {
        return cityId;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setIsDefault(Integer isDefault)
    {
        this.isDefault = isDefault;
    }

    public Integer getIsDefault()
    {
        return isDefault;
    }
    public void setCreateById(String createById)
    {
        this.createById = createById;
    }

    public String getCreateById()
    {
        return createById;
    }
    public void setUpdateById(String updateById)
    {
        this.updateById = updateById;
    }

    public String getUpdateById()
    {
        return updateById;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("entityId", getEntityId())
            .append("entityType", getEntityType())
            .append("addressType", getAddressType())
            .append("name", getName())
            .append("telephone", getTelephone())
            .append("cityId", getCityId())
            .append("address", getAddress())
            .append("isDefault", getIsDefault())
            .append("createBy", getCreateBy())
            .append("createById", getCreateById())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateById", getUpdateById())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
